import { BasicFetchResult } from '/@/api/model/baseModel';

export interface GetDeptListModel {
  isSelect?: string;
}

export interface UserListItem {
  avatar: string;
  branchAdmin: string;
  branchInnercode: string;
  createTime: string;
  createUser: string;
  email: string;
  forbiddenLoginTime: null;
  id: string;
  lastLoginIp: string;
  lastLoginTime: string;
  lastModifyPassTime: string;
  loginErrorCount: Number;
  loginErrorTime: string;
  mobile: string;
  modifyPassStatus: string;
  nickName: string;
  realName: string;
  status: string;
  updateTime: string;
  updateUser: string;
  userName: string;
}

export interface BranchListItem {
  id: string;
  branchInnercode: string;
  orderFlag: string;
  name: string;
  manager: string;
  fix: string;
  memo: string;
  parentId: string;
  parentInnercode: string;
  phone: string;
  treeLevel: string;
  type: string;
  createTime: string;
  createUser: string;
  updateUser: string;
  updateTime: string;
}

export type BranchListGetResultModel = BasicFetchResult<BranchListItem>;

export type BranchUserListGetResultModel = Array<UserListItem>;

export interface BranchModel {
  branchInnercode?: string;
  parentInnercode: string;
  orderFlag: string;
  name: string;
  branchCode: string;
  manager?: string;
  phone?: string;
  fax?: string;
  memo?: string;
}

export interface RoleModel {
  branchInnercode?: string;
  roleName: string;
  roleCode: string;
  memo?: string;
}
